package tut.collection.dataStructure.addMethod;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class AddMethod {
	public static void main(
						String args[]) {
		Iterator iter;
		Collection ref;

		ref = new ArrayList();
		Populator.fillIt1(ref);
		iter = ref.iterator();
		while (iter.hasNext()) {
			System.out.print(iter.next());
		}
		System.out.println("------");

		ref = new ArrayList();
		Populator.fillIt2(ref);
		iter = ref.iterator();
		while (iter.hasNext()) {
			System.out.print(iter.next());
		}
		System.out.println();
	}
}

